package com.zhou.org.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 用户添加到组织结构下
 * @author lang.zhou
 * @date 2022/8/24 9:59
 */
@Data
@ApiModel("用户添加到组织结构模型")
public class OrgUserDto implements Serializable {

    @NotNull(message = "组织结构id不能为空")
    @ApiModelProperty(value = "用户添加到组织结构模型",required = true)
    private Integer orgId;

    @ApiModelProperty(value = "用户id",required = true)
    @NotEmpty(message = "用户不能为空")
    private List<Integer> userIds;

}
